{extend name="public/base" /} {block name="title"}
<title>标签：{$tag.name}</title>
<meta name="keywords" content="{:config('web.site_keywords')}">
<meta name="description" content="{:config('web.site_description')}">{__block__} {/block} {block name="content"}
<div class="col-sm-8">
    {notempty name="errmsg"}
    <div class="alert alert-danger alert-dismissable text-center">
        <h1>{$errmsg}</h1>
    </div>
    {else /}
    <div class="article-list">
        <div class="ibox">
            <div class="ibox-content page-heading">
                <h2>与<span class="text-danger">"{$tag.name}"</span>相关的文章</h2>
            </div>
        </div>
        {foreach name="article_list" item="article"}
        <div class="ibox">
            <div class="ibox-content">
                <a href="{:url('index/index/article',['id'=>$article['id']])}" class="btn-link">
                    <h2>
                        {eq name="article.is_original" value="1"}[原创]{/eq}{$article.title}
                    </h2>
                </a>
                <div class="small m-b-xs">
                    <strong>{$article.author}</strong>&nbsp;&nbsp;<span class="text-muted"><i class="fa fa-clock-o"></i>最后更新于&nbsp;{$article.update_time}</span>
                </div>
                <p>
                    {$article.description}
                </p>
                <div class="row">
                    <div class="col-md-6">
                        <h5>标签：</h5>
                        {$article.tid|getTag}
                    </div>
                    <div class="col-md-6">
                        <div class="small text-right">
                            <h5>状态：</h5>
                            <div> <i class="fa fa-comments-o"> </i> {$article.id|getCommentsNum} 评论 </div>
                            <i class="fa fa-eye"> </i> {$article.visits} 浏览
                        </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="row">
                    <div class="col-md-2 col-md-offset-4 pull-right">
                        <a href="{:url('index/index/article',['id'=>$article['id']])}" class="btn btn-primary tag"><i class="fa fa-eye"></i> 阅读全文</a>
                    </div>
                </div>
            </div>
        </div>
        {/foreach}
        <div class="text-center">{$article_list->render()}</div>
    </div>
    {/notempty}
</div>
{/block} {block name="script"}{__block__}{/block}